//
// Decompiled by Jadx - 395ms
//
package ge;

import com.google.gson.Gson;
import fi.c;
import fi.e;
import fi.k;
import fi.w;
import fn.b;
import fn.j;
import fn.x;
import fn.y;
import gc.ce;
import java.util.ArrayList;
import java.util.List;
import me.plusne.common.Json.JsonHookStatic;
import me.plusne.common.Json.JsonTitleValue;
import o.a;
import org.luckypray.dexkit.query.FindField;
import org.luckypray.dexkit.query.FindMethod;
import org.luckypray.dexkit.query.matchers.FieldMatcher;
import org.luckypray.dexkit.query.matchers.MethodMatcher;
import org.luckypray.dexkit.result.ClassData;
import org.luckypray.dexkit.result.FieldData;
import org.luckypray.dexkit.result.FieldDataList;
import org.luckypray.dexkit.result.MethodData;

@a("TK")
public final class c extends x {
    public static final int cp = 0;
    public MethodData cq;
    public String cr;
    public String cs;

    public static void ct(c cVar) {
        cVar.getClass();
        w wVar = new w(y.by.getActivity());
        wVar.bj(fi.e.LIST_ITEM);
        wVar.aj = "设置默认地区(" + b.g("setCountryName", "日本") + ")";
        wVar.bb();
        wVar.bc("有些地区可能被和谐,无法刷新视频");
        fi.c cVar2 = new fi.c();
        cVar2.setList(new ArrayList());
        cVar2.setTitle("");
        cVar2.setGroup(false);
        cVar2.setGravity(8388611);
        for (JsonTitleValue jsonTitleValue : (List) new Gson().fromJson("[{\"title\":\"日本\",\"value\":\"JP\"},{\"title\":\"香港\",\"value\":\"HK\"},{\"title\":\"印度尼西亚\",\"value\":\"ID\"},{\"title\":\"澳门\",\"value\":\"MO\"},{\"title\":\"印度\",\"value\":\"TW\"},{\"title\":\"韩国\",\"value\":\"KR\"},{\"title\":\"越南\",\"value\":\"VN\"},{\"title\":\"泰国\",\"value\":\"TH\"},{\"title\":\"菲律宾\",\"value\":\"PH\"},{\"title\":\"马来西亚\",\"value\":\"MY\"},{\"title\":\"新加坡\",\"value\":\"SG\"},{\"title\":\"柬埔寨\",\"value\":\"KH\"},{\"title\":\"美国洛杉矶\",\"value\":\"LA\"},{\"title\":\"缅甸\",\"value\":\"MM\"},{\"title\":\"中国\",\"value\":\"CN\"},{\"title\":\"俄罗斯\",\"value\":\"RU\"},{\"title\":\"奥地利\",\"value\":\"AT\"},{\"title\":\"比利时\",\"value\":\"BE\"},{\"title\":\"保加利亚\",\"value\":\"BG\"},{\"title\":\"克罗地亚\",\"value\":\"HR\"},{\"title\":\"塞浦路斯\",\"value\":\"CY\"},{\"title\":\"捷克\",\"value\":\"CZ\"},{\"title\":\"爱沙尼亚\",\"value\":\"EE\"},{\"title\":\"芬兰\",\"value\":\"FI\"},{\"title\":\"法国\",\"value\":\"FR\"},{\"title\":\"德国\",\"value\":\"DE\"},{\"title\":\"希腊\",\"value\":\"GR\"},{\"title\":\"匈牙利\",\"value\":\"HU\"},{\"title\":\"爱尔兰\",\"value\":\"IE\"},{\"title\":\"意大利\",\"value\":\"IT\"},{\"title\":\"巴黎\",\"value\":\"LV\"},{\"title\":\"立陶宛\",\"value\":\"LT\"},{\"title\":\"卢森堡\",\"value\":\"LU\"},{\"title\":\"马耳他\",\"value\":\"MT\"},{\"title\":\"荷兰\",\"value\":\"NL\"},{\"title\":\"波兰\",\"value\":\"PL\"},{\"title\":\"葡萄牙\",\"value\":\"PT\"},{\"title\":\"罗马尼亚\",\"value\":\"RO\"},{\"title\":\"斯洛伐克\",\"value\":\"SK\"},{\"title\":\"斯洛文尼亚\",\"value\":\"SI\"},{\"title\":\"西班牙\",\"value\":\"ES\"},{\"title\":\"瑞典\",\"value\":\"SE\"},{\"title\":\"英国\",\"value\":\"GB\"},{\"title\":\"埃及\",\"value\":\"EG\"},{\"title\":\"苏丹\",\"value\":\"SD\"},{\"title\":\"阿尔及利亚\",\"value\":\"DZ\"},{\"title\":\"摩洛哥\",\"value\":\"MA\"},{\"title\":\"伊拉克\",\"value\":\"IQ\"},{\"title\":\"沙特阿拉伯\",\"value\":\"SA\"},{\"title\":\"也门\",\"value\":\"YE\"},{\"title\":\"叙利亚\",\"value\":\"SY\"},{\"title\":\"乍得\",\"value\":\"TD\"},{\"title\":\"突尼斯\",\"value\":\"TN\"},{\"title\":\"索马里\",\"value\":\"SO\"},{\"title\":\"利比亚\",\"value\":\"LY\"},{\"title\":\"约旦\",\"value\":\"JO\"},{\"title\":\"厄立特里亚\",\"value\":\"ER\"},{\"title\":\"阿拉伯\",\"value\":\"AE\"},{\"title\":\"黎巴嫩\",\"value\":\"LB\"},{\"title\":\"毛利塔尼亚\",\"value\":\"MR\"},{\"title\":\"科威特\",\"value\":\"KW\"},{\"title\":\"阿曼\",\"value\":\"OM\"},{\"title\":\"卡塔尔\",\"value\":\"QA\"},{\"title\":\"吉布提\",\"value\":\"DJ\"},{\"title\":\"巴林\",\"value\":\"BH\"},{\"title\":\"科摩罗\",\"value\":\"KM\"}]", new a().getType())) {
            String title = jsonTitleValue.getTitle();
            String value = jsonTitleValue.getValue();
            c.a aVar = new c.a();
            aVar.setTitle(title);
            aVar.setDesc((String) null);
            aVar.setKey(value);
            aVar.setRightText((String) null);
            aVar.setArrow(false);
            aVar.setHideArrow(false);
            cVar2.getList().add(aVar);
        }
        wVar.aq.add(cVar2);
        fg.b bVar = wVar.y;
        if (bVar != null) {
            bVar.notifyItemChanged(r1.size() - 1);
        }
        wVar.ae = new ce(9);
        wVar.bk();
    }

    public final void a() {
        JsonHookStatic jsonHookStatic = y.by;
        if (!jsonHookStatic.isExpire()) {
            jsonHookStatic.setMenuCall("设置默认地区(" + b.g("setCountryName", "日本") + ")", new k(14, this));
        }
        int c = fo.b.c();
        MethodData d = fo.b.d(c);
        this.cq = d;
        if (d == null) {
            MethodData methodData = (MethodData) jsonHookStatic.getBridge().findMethod(FindMethod.create().matcher(MethodMatcher.create().usingStrings(new String[]{"getDisplayCutout", "AdaptationManager"}))).first();
            this.cq = methodData;
            fo.b.f(c, methodData.getDescriptor());
        }
        ClassData declaredClass = this.cq.getDeclaredClass();
        if (declaredClass == null) {
            j.bi(new Object[]{"is not BlackEdge Field"});
            return;
        }
        FieldDataList findField = declaredClass.findField(FindField.create().matcher(FieldMatcher.create().type(Integer.TYPE)));
        if (findField.size() <= 2) {
            j.bi(new Object[]{"is not BlackEdge Field int"});
            return;
        }
        this.cr = ((FieldData) findField.get(1)).getFieldName();
        this.cs = ((FieldData) findField.get(2)).getFieldName();
        j.bb(this.cq, new b(this));
    }
}
